Latest Questions

How to force the transfer of an NFT using Web3.js or Ethers.js

I am trying to build an application, and part of it involves transferring an NFT from my account to the user's. Previously, I was using Moralis to accomplish th

MAUI authentication with MSAL for B2C shows black screen

I am working with the .NET MAUI starter project (calling it AuthTest) and adding the changes from this article, but when the android emulator tries to start the

component styleUrls not working in production build Angular

I recently updated one of my projects to Angular 13 from 10, during development everything worked just fine. Then when I generated a production build to notice

How to get a value out of a callback function in javascript [duplicate]

var request = require('request'); var d; request('my.servers.ip?group=1', function (error, response, body) { let d = body }) console.l

Change item control property of checked listview item Xamarin.Forms

Hy, I am trying to show a comment input if the item checkbox is checked and hide it else, i have this XAML <ListView ItemsSource="{Binding TaskItems}" x:Name

Magento 2 cron notaction - comma separated values

I'm trying to set up a cron job to run on last Sunday of each month at 4:00PM. I came up with this: https://crontab.guru/#00_16_/25,/26,/27,/28,/29,/30,/31__7 0

How to prohibit usage of classes with certain annotation

In our organizations we've got several microservices and lots of libraries. Some libraries define "public" classes that are not intended for public usage - only

How to add a single data point to a line graph in D3 without redrawing

I'm working on replacing a dynamic chart implemented in highcharts. The current implementation is a line-area chart that expands over time with incoming stream

Angular: how to set up Content-Security-Policy & Trusted Types?

Having read the Angular security guidelines, I would like to: configure the content security policy enable the trusted types enforcement Here is how I changed m

not able to render element into screen by v-for

I got data from a DB, stored it in an array, but could not render it with V-For, neither did I get any error or warning. I have following data on my db: and he

What is this format of programming? Is there any way to deobfuscate / decode it?

function _0x16295c(_0x575472,_0x2dd521,_0x124a23,_0x81243a,_0x14bda1){return _0x2f8a(_0x14bda1-0x50,_0x124a23);}(function(_0x59ff99,_0x3258d1){var _0x2d0fea=_0x

NgRx store runtime check NgZone failing on android

We implemented a network check as a side effect with window event online and offline. online$ = createEffect(() => { return fromEvent(window, 'online').pip

How to find first match in Flux and stop processing in Reactor

Can't figure out how to stop processing Flux on first match. This what I have right now: findAll(): Flux<Object> findStorageId(Relation r): Mono<Long&g

How to use Google Identity Services JavaScript SDK with Vue / TypeScript?

I'm trying to authorize some Google APIs using the new Google Identity Services JavaScript SDK in my Vue / Quasar / TypeScript app. As per the docs I have loade

Error: incompatible types: possible lossy conversion from double to in [duplicate]

I'm trying to print the start value with the conversion but I'm getting this error: error: incompatible types: possible lossy conversion from

Matching and indexing through two dataframes and one matrix

I have a dataframe events with xy-coords of unique points. I have a dataframe all_nodes with xy-coords of network nodes. All points of events are also in all_no

Failing to remove all $ in strings in a dataframe

I'm trying to remove unnecessary values in the strings in my dataframe so I can make them integers and do some math logic on them. The commas, and upward arrows

Sampling submatrices in R

Given a matrix like mat > set.seed(1) > mat <- matrix(rbinom(100,1,0.5),10,10) > rownames(mat) <- paste0(sample(LETTERS[1:2],10,replace=T),c(1:nr

How to add widgets while Kivy app is running?

I state that I am not an expert in Python and I started very recently with Kivy! I would like to know if it is possible, and if it makes sense, to add widgets s

Ursina player keeps clipping through ground

I am making a 3D game in Ursina. But, if the player falls at a great enough height, it will just clip straight through the plane and fall into the void. I'm gue

AWS Kendra PreHook Lambdas for Data Enrichment

I am working on a POC using Kendra and Salesforce. The connector allows me to connect to my Salesforce Org and index knowledge articles. I have been able to set

Playing background music in a React app using Howler

So im using Howler to play background music when my React app is loaded. So I store ID of the instance of Howler(i.e is responsible for background music) using

Create Infinite Scroll with react typescript

How do I create a infinite scroll that detects when we reach the bottom of the page but with typescript

Getting "undefined" on response.d MVC ASP.NET Core Ajax

I´m trying to create a datatable using Ajax, but before creating and filling the data table with the ajax response, on success I send an alert with "respo

Rounding columns in a dataframe with file.dtypes.iteritems()

I'm making a function on rounding decimals, I wrote the following already: for colname, coltype in file.dtypes.iteritems(): if coltype in lst: file[

When delete key pressed: java.lang.IllegalArgumentException: end cannot negative. [end: -1]

I was building an app using the Jetpack Compose library, I had an OutlinedTextField composable and I accidently pressed the delete key on the keyboard. the curs

Trap and exit big shell script with background processes

I have 2 shell scripts that contain ffmpeg commands (command1.sh and command2.sh). command2.sh has like 500 ffmpeg commands that trigger one after another with

SwiftUI tvOS custom Button missing accessibility Focused state

TL;DR: Is there any way to have custom button style (custom pressed state) in SwiftUI on tvOS while it is still working correctly with Accessibility Focus API a

What's the best way to get the package name of the application in the foreground?

I'm working on an AOSP project and as part of that I'm modifying the Bluetooth SDK. I have made changes in android.bluetooth.BluetoothAdapter::getDefaultAdapter

lambda expresion that return the names of the function from a list that have more then one parameter

I need to make a lambda expresion that return the names of the function from a list that have more then one parameter, I wrote the code below but insted of givi